home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / autojpeg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-16  |  4.3 KB  |  103 lines

  1. /******************************************************************/
  2. /*                                                                */
  3. /*                      TurboCAD for Windows                      */
  4. /*                   Copyright (c) 1993 - 2001                    */
  5. /*             International Microcomputer Software, Inc.         */
  6. /*                            (IMSI)                              */
  7. /*                      All rights reserved.                      */
  8. /*                                                                */
  9. /******************************************************************/
  10.  
  11. // AutoJPEG.h : header file
  12. //
  13.  
  14. #include "WSetup.h"
  15.  
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CAutoJPEG command target
  19.  
  20. class CAutoJPEG : public CCmdTarget
  21. {
  22.     DECLARE_DYNCREATE(CAutoJPEG)
  23.  
  24.     CAutoJPEG();           // protected constructor used by dynamic creation
  25.  
  26. // Attributes
  27. public:
  28.     CJPEGWriteSetup m_dlg;
  29.  
  30. // Operations
  31. public:
  32.  
  33. // Overrides
  34.     // ClassWizard generated virtual function overrides
  35.     //{{AFX_VIRTUAL(CAutoJPEG)
  36.     public:
  37.     virtual void OnFinalRelease();
  38.     //}}AFX_VIRTUAL
  39.  
  40. // Implementation
  41. protected:
  42.     virtual ~CAutoJPEG();
  43.     BOOL GetProfileName(IApplication* pIApp, CString& strProfileName);
  44.  
  45.     // Generated message map functions
  46.     //{{AFX_MSG(CAutoJPEG)
  47.         // NOTE - the ClassWizard will add and remove member functions here.
  48.     //}}AFX_MSG
  49.  
  50.     DECLARE_MESSAGE_MAP()
  51.     DECLARE_OLECREATE(CAutoJPEG)
  52.  
  53.     // Generated OLE dispatch map functions
  54.     //{{AFX_DISPATCH(CAutoJPEG)
  55.     afx_msg BSTR GetClassID();
  56.     afx_msg BSTR GetDescription();
  57.     afx_msg BSTR GetInfo();
  58.     afx_msg BSTR GetLastError();
  59.     afx_msg long CheckFlat(LPDISPATCH ThisFilter, LPCTSTR FileName, long ContextFlags, VARIANT FAR* QueryString);
  60.     afx_msg long PreviewFlat(LPDISPATCH ThisFilter, LPCTSTR FileName, long ThumbWidth, long ThumbHeight, BSTR FAR* Description, VARIANT FAR* Thumbnail);
  61.     afx_msg long ReadFlat(LPCTSTR FileName, long ContextFlags, LPDISPATCH Graphics, VARIANT FAR* QueryString);
  62.     afx_msg long WriteFlat(LPCTSTR FileName, long ContextFlags, LPDISPATCH Graphics, VARIANT FAR* QueryString);
  63.     afx_msg BOOL ReadSetup(LPDISPATCH ThisFilter);
  64.     afx_msg BOOL WriteSetup(LPDISPATCH ThisFilter);
  65.     afx_msg BOOL Initialize(LPDISPATCH ThisFilter);
  66.     //}}AFX_DISPATCH
  67.     DECLARE_DISPATCH_MAP()
  68.     DECLARE_INTERFACE_MAP()
  69.  
  70.     // DUAL_SUPPORT_START
  71.     //    add declaration of ISmartObjectServer implementation
  72.     //      You need one entry here for each entry in the
  73.     //      interface statement of the ODL, plus the entries for a
  74.     //      dispatch interface. The BEGIN_DUAL_INTERFACE_PART
  75.     //      macro in mfcdual.h automatically generates the IDispatch
  76.     //      entries for you. 
  77.     //      Each entry with the "propput" attribute needs a function
  78.     //    named "put_<property name>". Each entry with the "propget" 
  79.     //      attribute needs a function named "get_<property name>". 
  80.     //      You can pull these function prototypes from the header file 
  81.     //      generated by MKTYPLIB.
  82.     BEGIN_DUAL_INTERFACE_PART(DualJPEG, ITurboCADFilter)
  83.         STDMETHOD(get_ClassID)(THIS_ BSTR FAR* retval);
  84.         STDMETHOD(get_Description)(THIS_ BSTR FAR* retval);
  85.         STDMETHOD(get_Info)(THIS_ BSTR FAR* retval);
  86.         STDMETHOD(get_LastError)(THIS_ BSTR* retval);
  87.         STDMETHOD(CheckFlat)(THIS_ IDispatch* ThisFilter, BSTR FileName, long ContextFlags, VARIANT FAR* QueryString, long FAR* retval);
  88.         STDMETHOD(PreviewFlat)(THIS_ IDispatch* ThisFilter, BSTR FileName, long ThumbWidth, long ThumbHeight, BSTR FAR* Description, VARIANT FAR* Thumbnail, long FAR* retval);
  89.         STDMETHOD(ReadFlat)(THIS_ BSTR FileName, long ContextFlags, IDispatch* Graphics, VARIANT FAR* QueryString, long FAR* retval);
  90.         STDMETHOD(WriteFlat)(THIS_ BSTR FileName, long ContextFlags, IDispatch* Graphics, VARIANT FAR* QueryString, long FAR* retval);
  91.         STDMETHOD(ReadSetup)(THIS_ IDispatch* ThisFilter, VARIANT_BOOL FAR* retval);
  92.         STDMETHOD(WriteSetup)(THIS_ IDispatch* ThisFilter, VARIANT_BOOL FAR* retval);
  93.         STDMETHOD(Initialize)(THIS_ IDispatch* ThisFilter, VARIANT_BOOL FAR* retval);
  94.     END_DUAL_INTERFACE_PART(DualJPEG)
  95.  
  96.     //     add declaration of ISupportErrorInfo implementation
  97.     //     to indicate we support the OLE Automation error object
  98.     DECLARE_DUAL_ERRORINFO()
  99.     // DUAL_SUPPORT_END
  100. };
  101.  
  102. /////////////////////////////////////////////////////////////////////////////
  103.